package com.guet.mapper;

import com.guet.Entity.DeleteTopicAndReply;
import com.guet.VO.DeleteTopicAndReplyVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DeleteTopicAndReplyMapper {
    void insertTopicReason(DeleteTopicAndReply deleteTopicAndReply);

    @Select("select * from delete_topic_and_reply where user_id = #{userId} order by create_time desc")
    List<DeleteTopicAndReplyVO> list(Long userId);
}
